# name : dplyr count duplicated
# key : count.duplicated@dplyr
# contributor: Shuguang Sun
# --
${1:dfout} <- ${2:dfin} |>
dplyr::summarise(
${3:n} = dplyr::n(),
.by = c(${4:groups})
) |>
dplyr::filter($3 > 1L)
